package com.yc.sole.system.response;

import com.yc.sole.common.enums.CommonState;
import lombok.Data;

import java.io.Serializable;

/**
 * Resp对象
 *
 * @author yizuomin
 * @date 2023-03-26
 **/
@Data
public class DictItemResp implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 字典项编码
     */
    private String itemKey;
    /**
     * 字典项名称
     */
    private String itemName;
    /**
     * 状态
     */
    private CommonState state;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 备注
     */
    private String remark;

    /**
     * 获取主键
     *
     * @return
     */
    public String getText() {
        return this.itemName;
    }
}
